package com.zyf.util;

import cn.hutool.crypto.SecureUtil;
import com.zyf.config.AccountProfile;
import org.apache.shiro.SecurityUtils;

import java.security.Security;

public class ShiroUtil {

    public static AccountProfile getprofile(){
        return (AccountProfile)SecurityUtils.getSubject().getPrincipal();
    }
}
